package com.zhl.study.service.chainResponsibility.strategy;

import com.zhl.study.anno.Duty;
import com.zhl.study.cons.ProduckTypeConst;
import com.zhl.study.service.chainResponsibility.IHandler;
import com.zhl.study.vo.Product;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @description TODO
 * @Author: z156940l@outlook.com
 * @className CHandler
 * @Date: 2024/12/26 21:20
 */
@Component
//@Order(3)
@Duty(type= ProduckTypeConst.PRODUCT_GENERAL,order = 30)
public class CHandler extends IHandler<Product, Boolean> {

    @Override
    public Boolean handler(Product product) {
        System.out.println("CHandler");
        return super.handler(product);
    }
}
